package unit2;

//import java.util.*; // == #include <stdio.h> ==

import java.util.Scanner;

public class Ex2_4_InputTest {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        //读取用户的名字
        System.out.println("What is your name?");
        String name = in.nextLine();
        //读取用户的年龄
        System.out.println("How old are you?");
        int age = in.nextInt();
        in.close();
        //输出信息
        System.out.print("Hello, " + name + " . ");
        System.out.println("Next year, you'll be " + (age + 1) + " years old.");
//        System.out.println("Next year, you'll be " + age + 1 + " years old.");
    }
}
